package com.lwb.ztx.news.widget.content;

import com.lwb.ztx.bean.NewsBean;
import com.lwb.ztx.utils.ListUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by luweibin on 2016/5/27.
 */
public class NewsContent {
    private List<NewsBean> newsBeanList = new ArrayList<>();

    private int currentPage = 1;

    public int getSize() {
        return ListUtils.getSize(newsBeanList);
    }

    public NewsBean getIndex(int index) {
        return newsBeanList.get(index);
    }

    public void addNews(List<NewsBean> news) {
        newsBeanList.addAll(news);
    }

    public void refreshNews(List<NewsBean> news) {
        newsBeanList.clear();
        newsBeanList.addAll(news);
    }
}
